﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Whir_System_Module_Reply_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <whir:ezGridView ID="GridView1" runat="server" Width="100%" BackColor="#CBCBCB" AutoGenerateColumns="False"
            DataKeyNames="ID" AutoSortExpression="" OnRowCommand="GridView1_RowCommand">
            <HeaderStyle CssClass="grid_Title" Height="20px" />
            <RowStyle CssClass="grid_td" Height="23px" />
            <CustomColumns>
                <NumberColumn Align="Left" Position="0" Priority="0" Visible="False" Width="0" />
                <MultiChooseColumn Align="Left" Position="0" Priority="0" Visible="True" Width="0" />
                <RadioButtonColumn Align="Left" Position="0" Priority="0" Visible="False" Width="0" />
            </CustomColumns>
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="编号" />
                <asp:BoundField DataField="Title" HeaderText="标题">
                    <headerstyle width="230px" />
                </asp:BoundField>
                <asp:BoundField DataField="CreateUserName" HeaderText="姓名" />
                <asp:BoundField DataField="CreateUserEmail" HeaderText="邮箱" />
                <asp:BoundField DataField="CreateDate" HeaderText="留言时间" />
                <asp:TemplateField HeaderText="回复状态">
                    <itemtemplate>
              <%# ((bool)Eval("IsReply"))?"已回复":"未回复" %>                    
</itemtemplate>
                    <headerstyle verticalalign="Middle" />
                    <itemstyle width="80px" horizontalalign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="显示状态">
                    <itemtemplate>
                    <asp:LinkButton id="LinkButton1" runat="server" CommandName="Show" CommandArgument='<%# Eval("IsShow") %>' Text='<%# ((bool)Eval("IsShow"))?"已显示":"已隐藏" %>'></asp:LinkButton>
                    
</itemtemplate>
                    <headerstyle verticalalign="Middle" />
                    <itemstyle width="80px" horizontalalign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="详细">
                    <itemtemplate>
                        <a href='ReplyInfo.aspx?ItemID=<%# Eval("ID") %>&TypeID=<%=TypeID %>&url=<%=url %>'>查看</a>                    
                    
</itemtemplate>
                </asp:TemplateField>
            </Columns>
            <ExportSetting ExportExcel="False" ExportFileName="exportedgv" ExportPdf="False"
                ExportWord="False" Sepeater="&amp;nbsp;||&amp;nbsp;" ShowCopyRight="True" Visible="False">
            </ExportSetting>
            <AutoSortSetting AutoSort="False" SortTip="" />
            <TrimLongStrSetting MaxLength="100" Support="False" />
            <CustomPage SelfMotion="False" />
            <LockHeaderSetting Height="800px" Support="False" Width="" />
            <MouseBehavior MouseOverColor="" Support="False" />
        </whir:ezGridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="f-gray" CustomInfoHTML="目前在第<font color=red>%currentPageIndex%</font>页,共有<font color=red>%PageCount%</font>页,共有<font color=red>%RecordCount%</font>条记录&nbsp;&nbsp;&nbsp;&nbsp;"
            FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
            PageSize="10" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Always"
            ShowPageIndex="False" Width="98%">
        </webdiyer:AspNetPager>
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA"
            id="divMessage" runat="server" visible="false">
            <tr>
                <td class="form_td"><strong>无法找到匹配的数据</strong> </td>
            </tr>
        </table>
        <div class="command">
            <asp:Button ID="btnDelete" runat="server" Text="删除" CssClass="btn_default" OnClick="btnDelete_Click" />
        </div>
    </form>
</body>
</html>
